colorpickershell: Unpack the tuple returned from PickColor()
authorIain Lane <iainl@gnome.org>
Mon, 13 Aug 2018 12:52:41 +0000 (13:52 +0100)
committerIain Lane <iainl@gnome.org>
Mon, 13 Aug 2018 12:52:41 +0000 (13:52 +0100)
commit08f32c656058e6c487465db81a08d22212d2671f
tree581deb974e3993c5933ec55d5b0927e7b8c87d34
parented369332323ff1e64006dc68f2b325df3d42bd08
colorpickershell: Unpack the tuple returned from PickColor()

When calling PickColor on org.gnome.Shell, we get back an "a{sv}", which
GDBus provides to us as "(a{sv})".

At the minute we're not unpacking this tuple, and so picking fails with
messages like:

  GLib-CRITICAL **: 13:38:19.439: g_variant_lookup_value: assertion 'g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{s*}")) || g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{o*}"))' failed

  Gtk-WARNING **: 13:38:19.439: Picking color failed: No color received

Let's unpack it.
gtk/gtkcolorpickershell.c